package com.weds.frame.auth.mapper;

import com.weds.frame.auth.entity.ScBusinessItem;
import com.weds.frame.auth.entity.ScBusinessOptApi;
import com.weds.frame.auth.entity.ScBusinessOptApiCache;
import com.weds.frame.auth.entity.ScBusinessOptApiData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface ScBusinessOptApiAuthMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ScBusinessOptApi record);

    int insertSelective(ScBusinessOptApi record);

    ScBusinessOptApi selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ScBusinessOptApi record);

    int updateByPrimaryKey(ScBusinessOptApi record);

    List<ScBusinessOptApiData> getScBusinessOptApiListByPrimaryKey(ScBusinessItem scBusinessItem);

    List<ScBusinessOptApiCache> selectAll();

    List<ScBusinessOptApi> selectBusinessOpt(@Param("likeStr") String likeStr);

    int deleteByOptNo(@Param("optNo") String optNo);

    ScBusinessOptApi selectByApi(@Param("apiName") String apiName);

    int insertOrUpdate(Map<String,Object> map);
}